<html>
<head><meta charset="utf-8"><title>unused attribute errors · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/unused.20attribute.20errors.html">unused attribute errors</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="159082533"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/unused%20attribute%20errors/near/159082533" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/unused.20attribute.20errors.html#159082533">(Feb 21 2019 at 16:33)</a>:</h4>
<p>Is anybody seeing errors like this when building the compiler?</p>
<div class="codehilite"><pre><span></span>Building stage0 std artifacts (x86_64-unknown-linux-gnu -&gt; x86_64-unknown-linux-gnu)
   Compiling core v0.0.0 (/home/nmatsakis/versioned/rust-3/src/libcore)
error: unused attribute
   --&gt; src/libcore/num/mod.rs:50:17
    |
50  |                   #[rustc_layout_scalar_valid_range_start(1)]
    |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
100 | / nonzero_integers! {
101 | |     #[stable(feature = &quot;nonzero&quot;, since = &quot;1.28.0&quot;)] NonZeroU8(u8);
102 | |     #[stable(feature = &quot;nonzero&quot;, since = &quot;1.28.0&quot;)] NonZeroU16(u16);
103 | |     #[stable(feature = &quot;nonzero&quot;, since = &quot;1.28.0&quot;)] NonZeroU32(u32);
.
</pre></div>



<a name="159082534"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/unused%20attribute%20errors/near/159082534" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/unused.20attribute.20errors.html#159082534">(Feb 21 2019 at 16:33)</a>:</h4>
<p>wtf?</p>



<a name="159082570"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/unused%20attribute%20errors/near/159082570" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/unused.20attribute.20errors.html#159082570">(Feb 21 2019 at 16:33)</a>:</h4>
<p>/me tries <code>x.py clean</code></p>



<a name="159083197"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/unused%20attribute%20errors/near/159083197" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/unused.20attribute.20errors.html#159083197">(Feb 21 2019 at 16:40)</a>:</h4>
<p>I've seen these (and others) with <code>keep-stage</code></p>



<a name="159083222"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/unused%20attribute%20errors/near/159083222" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> maksimsco <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/unused.20attribute.20errors.html#159083222">(Feb 21 2019 at 16:40)</a>:</h4>
<p>I've seen a lot, only <code>clean</code> helped</p>



<a name="159083789"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/unused%20attribute%20errors/near/159083789" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/unused.20attribute.20errors.html#159083789">(Feb 21 2019 at 16:46)</a>:</h4>
<p>clean seems to have helped, yeah, thanks. curious.</p>



<a name="159086289"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/unused%20attribute%20errors/near/159086289" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/unused.20attribute.20errors.html#159086289">(Feb 21 2019 at 17:17)</a>:</h4>
<p>same happened to me and clean did the trick</p>



<a name="159086298"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/unused%20attribute%20errors/near/159086298" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/unused.20attribute.20errors.html#159086298">(Feb 21 2019 at 17:17)</a>:</h4>
<p>I was wondering why did that happen</p>



<a name="159086353"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/unused%20attribute%20errors/near/159086353" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/unused.20attribute.20errors.html#159086353">(Feb 21 2019 at 17:18)</a>:</h4>
<blockquote>
<p>I've seen these (and others) with <code>keep-stage</code></p>
</blockquote>
<p>in my case was not with <code>keep-stage</code></p>



<a name="159086439"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/unused%20attribute%20errors/near/159086439" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/unused.20attribute.20errors.html#159086439">(Feb 21 2019 at 17:19)</a>:</h4>
<p>Maybe after a rebase without a clean?</p>



<a name="159091245"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/unused%20attribute%20errors/near/159091245" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/unused.20attribute.20errors.html#159091245">(Feb 21 2019 at 18:24)</a>:</h4>
<p>yes, after a rebase where previously I run <code>build -i --stage 1 src/libstd</code></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>